home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing;
-
- import com.sun.java.swing.event.ChangeEvent;
- import com.sun.java.swing.event.ChangeListener;
- import java.io.Serializable;
- import java.util.EventObject;
-
- class JMenu$MenuChangeListener implements ChangeListener, Serializable {
- // $FF: synthetic field
- JMenu this$0;
- boolean isSelected;
-
- public void stateChanged(ChangeEvent e) {
- DefaultButtonModel model = (DefaultButtonModel)((EventObject)e).getSource();
- boolean modelSelected = model.isSelected();
- if (modelSelected != this.isSelected) {
- if (modelSelected) {
- this.this$0.fireMenuSelected();
- } else {
- this.this$0.fireMenuDeselected();
- }
-
- this.isSelected = modelSelected;
- }
-
- }
-
- // $FF: synthetic method
- JMenu$MenuChangeListener(JMenu this$0) {
- this.this$0 = this$0;
- this.isSelected = false;
- }
- }
-